﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Minestorm.Evolved.Scenes;
using Minestorm.Evolved.Assets;
using Microsoft.Xna.Framework;

namespace Minestorm.Evolved.SceneObjects
{
    public class Hud : SceneObject
    {
        private Texture2D _texture;

        public override void LoadContent()
        {
            var content = ObjectFactory.InstanceOf<IAssetManager>();

            _texture = content.Load(Textures.Hud);

            base.LoadContent();
        }

        public override void UnloadContent()
        {
            _texture.Dispose();

            base.UnloadContent();
        }

        public override void Draw(GameTime gameTime)
        {
            SpriteBatch.Draw(_texture, Vector2.Zero, Color.White);

            base.Draw(gameTime);
        }
    }
}
